<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 29795
  Date: 2025/3/27
  Time: 下午5:39
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<a href="show">展示数据</a>
<table border="1" cellspacing="0" cellpadding="10">
    <tr>
    <th>编号</th>
    <th>账号</th>
    <th>密码</th>
    <th>时间</th>
    <th>性别</th>
    <th>年龄</th>
    <th>部门</th>
    </tr>
    <c:forEach var="u" items="${p.list}">
        <tr>
            <td>${u.id}</td>
            <td>${u.account}</td>
            <td>${u.password}</td>
            <td>${u.createtime}</td>
            <td>${u.info.sex}</td>
            <td>${u.info.age}</td>
            <td>${u.dept.deptname}</td>
        </tr>
    </c:forEach>
</table>
[${p.pageNum}/${p.pages}]
<a href="/show?pageNum=1">首页</a>
<a href="/show?pageNum=${p.prePage}">上一页</a>
<c:forEach var="i" items="${p.navigatepageNums}">
    <a href="/show?pageNum=${i}">${i}</a>
</c:forEach>
<a href="/show?pageNum=${p.nextPage}">下一页</a>
<a href="/show?pageNum=${p.pages}">尾页</a>
</body>
</html>
